.result-card {
  background: linear-gradient(135deg, var(--card-bg), var(--card-bg-darker));
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2);
}

.result-card .ant-card-body {
  padding: 24px;
}

.result-title {
  color: var(--text-color) !important;
  margin-bottom: 20px !important;
  font-weight: 600;
  position: relative;
}

.result-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.result-container {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  background-color: rgba(0, 0, 0, 0.15);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.generating-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeIn 0.5s ease-out;
}

.generating-text {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

/* 进度条自定义样式 */
.generating-container .ant-progress-inner {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.generating-container .ant-progress-text {
  color: var(--text-color);
  font-weight: 600;
}

.error-container {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeIn 0.5s ease-out;
}

.retry-button {
  margin-top: 12px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border: none;
  height: 44px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: all 0.3s;
}

.retry-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.result-image-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: fadeIn 0.5s ease-out;
}

.result-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.result-image {
  max-width: 100%;
  max-height: 500px;
  border-radius: var(--border-radius);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: block;
}

.result-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.result-image-wrapper:hover::before {
  opacity: 1;
}

.result-image-wrapper:hover .result-image {
  transform: scale(1.03);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 500px;
}

.action-button {
  margin: 0;
  border-radius: 8px;
  height: 44px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 100px;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.action-button:first-child {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.action-button:first-child:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.action-button:not(:first-child) {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
}

.action-button:not(:first-child):hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.action-button .anticon {
  margin-right: 6px;
  font-size: 16px;
}

.empty-result {
  color: var(--text-secondary);
  padding: 40px 0;
}

.empty-result .ant-empty-image {
  filter: opacity(0.5);
}

.empty-result .ant-empty-description {
  color: var(--text-secondary);
  font-size: 15px;
}

.preview-modal {
  max-width: 90vw !important;
}

.preview-modal .ant-modal-content {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.preview-modal .ant-modal-close {
  color: white;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.preview-modal img {
  display: block;
  max-height: 80vh;
  margin: 0 auto;
  object-fit: contain;
}

.preview-modal-actions {
  display: flex;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
}

.preview-modal-actions .ant-btn {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border: none;
  height: 44px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 0 24px;
  font-size: 15px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .result-container {
    padding: 16px;
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .result-card .ant-card-body {
    padding: 16px;
  }
  
  .result-container {
    min-height: 250px;
  }
  
  .result-image {
    max-height: 350px;
  }
  
  .result-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .action-button {
    width: 100%;
    margin: 0;
  }
  
  .generating-text {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .result-container {
    min-height: 200px;
  }
  
  .result-image {
    max-height: 280px;
  }
}